<?php
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
	require_once 'include/inc.config.php';
	require_once WACT_ROOT.'common.inc.php';
	require_once WACT_ROOT.'controller/pathinfo.inc.php';

	@session_start();

	$Front = new PathInfoDispatchController();
    $Front->addChild('login',   new Handle(APP_CTRL_ROOT . 'pub/pub.login.php|LoginPage'));
    $Front->addChild('index',   new Handle(APP_CTRL_ROOT . 'pub/calendar/index.page.php|CalendarIndexPage'));
	$Front->addChild('edit',   new Handle(APP_CTRL_ROOT . 'pub/calendar/edit.page.php|EventEditPage'));
	$Front->addChild('delete',   new Handle(APP_CTRL_ROOT . 'pub/calendar/delete.page.php|CalendarDeletePage'));
	$Front->addChild('create',   new Handle(APP_CTRL_ROOT . 'pub/calendar/create.page.php|EventCreatePage'));
    $Front->addChild('submit',   new Handle(APP_CTRL_ROOT . 'pub/calendar/create.page.php|EventCreatePage')); // the same as create
    $Front->addChild('view',   new Handle(APP_CTRL_ROOT . 'pub/calendar/view.page.php|CalendarViewPage'));
    $Front->addChild('viewday',   new Handle(APP_CTRL_ROOT . 'pub/calendar/viewday.page.php|CalendarViewDayPage'));
    $Front->addChild('view',   new Handle(APP_CTRL_ROOT . 'pub/calendar/view.page.php|CalendarViewPage'));
    $Front->addChild('teaser',   new Handle(APP_CTRL_ROOT . 'pub/calendar/view.page.php|CalendarTeaserPage'));

	$Front->setDefaultChild('index');
	$Front->start();



?>